package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.IGatewayChannelTranstypeDao;
import com.sq.partner.manager.mybatis.model.GatewayChannelTranstype;

/**
 * 
 * @author Kang Zhiqiang
 *
 */
@Repository
public class GatewayChannelTranstypeDaoImpl extends BaseDaoImpl implements
		IGatewayChannelTranstypeDao {

	@Override
	public List<GatewayChannelTranstype> queryByChannelTranstype(GatewayChannelTranstype channelTranstype)
			throws Exception {
		
		List<GatewayChannelTranstype> channelTranstypeList = this.queryList("queryGatewayChannelTranstypeByMap", channelTranstype);
		return channelTranstypeList;
	}

	@Override
	public void delByChannelTranstype(Long transtypeId)
			throws Exception {
		
		this.delete("delGatewayChannelTranstypeById", transtypeId);
	}

	@Override
	public void save(GatewayChannelTranstype channelTranstype) throws Exception {
		this.add("insertGatewayChannelTranstype", channelTranstype);
	}

	@Override
	public void delTransTypeByChannelCodeAndAppId(GatewayChannelTranstype gct)
			throws Exception {
		// TODO Auto-generated method stub
		this.delete("delTransTypeByChannelCodeAndAppId", gct);
	}


}
